package org.neptune.service.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.neptune.api.entity.Seckill;
import org.neptune.api.entity.SeckillExample;

public interface SeckillMapper {

	long countByExample(SeckillExample example);

	int deleteByExample(SeckillExample example);

	int deleteByPrimaryKey(String seckillId);

	int insert(Seckill record);

	int insertSelective(Seckill record);

	List<Seckill> selectByExample(SeckillExample example);

	Seckill selectByPrimaryKey(String seckillId);

	int updateByExampleSelective(@Param("record") Seckill record,
			@Param("example") SeckillExample example);

	int updateByExample(@Param("record") Seckill record, @Param("example") SeckillExample example);

	int updateByPrimaryKeySelective(Seckill record);

	int updateByPrimaryKey(Seckill record);

	int querySeckillGoodsCountForUpdate(@Param("seckillId") String seckillId);
}
